package cn.cs.service;


import cn.cs.pojo.InvoiceTitle;

import java.util.List;

public interface InvoiceTitleService {

    public InvoiceTitle getInvoiceTitleById(Long id)throws Exception;

    public InvoiceTitle	getInvoiceTitleByName(String name, String userId)throws Exception;

    public List<InvoiceTitle> getInvoiceTitleListByUserId(String userId)throws Exception;

    public Integer addInvoiceTitle(InvoiceTitle invoiceTitle)throws Exception;

    public Integer modifyInvoiceTitle(InvoiceTitle invoiceTitle)throws Exception;

    public Integer deleteInvoiceTitleById(Long id)throws Exception;

    public Integer setDefault(Long id)throws Exception;

    public Integer setDefaultAll(String userId)throws Exception;

    public InvoiceTitle getDefaultByUserId(String userId)throws Exception;


}
